﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Models
{
    public class InventoryWarn
    {
        public long Id { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public long? MaterialId
        {
            get; set;
        }
        /// <summary>
        /// 物料号
        /// </summary>
        [MaxLength(60)]
        public string MaterialCode
        {
            get; set;
        }
        /// <summary>
        /// 物料名称
        /// </summary>
        [MaxLength(60)]
        public string MaterialName
        {
            get; set;
        }
        /// <summary>
        /// 物料类型
        /// </summary>
        [MaxLength(60)]
        public string MaterialTypeName
        {
            get; set;
        }
        /// <summary>
        /// 预警类型：1-最小库存安全预警；2-最大库存安全预警;3-有效期预警
        /// </summary>
        public int? WarnType
        {
            get; set;
        }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal? QTY
        {
            get; set;
        }

        /// <summary>
        /// 最小安全库存
        /// </summary>
        public int? MinSafetyStock
        {
            get;
            set;
        }

        /// <summary>
        /// 最大安全库存
        /// </summary>
        public int? MaxSafetyStock
        {
            get;
            set;
        }
        /// <summary>
        /// 库房Id
        /// </summary>
        public long? WhId
        {
            get; set;
        }

        /// <summary>
        /// 所属库房
        /// </summary>
        public string WhName
        {
            get; set;
        }

        /// <summary>
        /// 库区Id
        /// </summary>
        public long? AreaId
        {
            get;
            set;
        }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string AreaName
        {
            get;
            set;
        }

        /// <summary>
        /// 仓位Id
        /// </summary>
        public long? LocationId
        {
            get;
            set;
        }

        /// <summary>
        /// 仓位编码
        /// </summary>
        public string LocationCode
        {
            get;
            set;
        }


    }
}
